Collaboration diagram for XFcFastAllocator< T, aGranularity >:

Public Member Functions | |
| XFcFastAllocator () | |
| Constructor. | |
| ~XFcFastAllocator () | |
| Destructor. | |
| void | reset () |
| Resets the allocator (this will not free any memory). | |
| void | freeMemory () |
| Frees all allocated memory. | |
| T * | alloc () |
| Allocates new object. | |
| T * | getCurrent () |
| Returns the pointer to newest object. | |
Protected Attributes | |
| INT | mCurrentItem |
| XFcLinkedList< T * >::forwardIterator | mIterator |
| XFcLinkedList< T * > | mList |
| Linked list of arrays. | |
Provides a reasonably fast way to allocate objects dynamically.
|
|||||||||
|
Constructor.
|
|
|||||||||
|
Destructor.
|
|
|||||||||
|
Allocates new object.
|
|
|||||||||
|
Frees all allocated memory.
|
|
|||||||||
|
Returns the pointer to newest object.
|
|
|||||||||
|
Resets the allocator (this will not free any memory).
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
Linked list of arrays.
|
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch | ||